//
//  UIView+Point.m
//  UI3LTView
//
//  Created by lanou on 15/11/12.
//  Copyright (c) 2015年 JasperSong. All rights reserved.
//

#import "UIView+Point.h"

@implementation UIView (Point)


- (CGFloat)top{
    return self.frame.origin.y;
}
- (CGFloat)bottom{
    return self.frame.origin.y + self.frame.size.height;
}
- (CGFloat)left{
    return self.frame.origin.x;
}
- (CGFloat)right{
    return self.frame.origin.x + self.frame.size.width;
}

- (void)setWidth:(CGFloat)width{
    CGRect temp = self.frame;
    temp.size.width = width;
    self.frame = temp;
}
- (CGFloat)width{
    return self.frame.size.width;
}

- (void)setHeight:(CGFloat)height{
    CGRect temp = self.frame;
    temp.size.height = height;
    self.frame = temp;
}

- (CGFloat)height{
    return self.frame.size.height;
}
@end
